home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / slatex / slatex.unx < prev    next >
Text File  |  1993-11-07  |  763b  |  35 lines

  1. scheme=oldchez
  2.  
  3. # scheme is the name by which you call your Scheme.  Specify full pathname
  4. # if its location is not in your path.
  5.  
  6. slatexdir=/home/dorai/scm/slatex/
  7.  
  8. # slatexdir is the location of the file slatex.ss.  Final "/" must be
  9. # included.
  10.  
  11. latexdir=""
  12.  
  13. # latexdir can be set to '' if latex and tex are in your path.
  14. # If not, set it to the directory where the executables tex and latex 
  15. # reside -- remember to include final "/".
  16.  
  17. # do not modify below this line.
  18.  
  19. case $1 in
  20. *.tex) texfile=`basename $1 .tex`;;
  21. *) texfile=$1;;
  22. esac
  23.  
  24. rm -f .Z[0-9]*$texfile.ss .Z[0-9]*$texfile.tex
  25.  
  26. echo '
  27.   (load "'$slatexdir'slatex.ss")
  28.   (set! *texinputs* "'$TEXINPUTS'")
  29.   (process-main-tex-file "'$1'")
  30.   ' | $scheme
  31.  
  32. latex=`cat .Z0$texfile.tex`
  33.  
  34. $latexdir$latex $1
  35.